<template>
  <view class="wrap">
    <status-bar></status-bar>
    <image src="../../static/phoneBg.png" mode="widthFix" class="loginBg"></image>
    <image src="../../static/left.png" class="left" @click="goBack"></image>
    <view class="center">
      <view class="head">
        <view class="small">
          <image src="../../static/logo.png" class="img"></image>
        </view>
        <view class="title">绑定手机号</view>
      </view>
      <view class="box">
        <view class="input">
          <view class="area">+86</view>
          <view class="test">
            <uv-input type="number" v-model="mobile" placeholder="请输入手机号" :maxlength='11' border="none" autoBlur fontSize='26rpx' color='#000000' placeholderStyle='font-size: 26rpx; color: #D5D5D5'></uv-input>
          </view>
        </view>
        <view class="input">
          <view class="test">
            <uv-input type="number" v-model="mobile" placeholder="请输入验证码" :maxlength='4' border="none" autoBlur fontSize='26rpx' color='#000000' placeholderStyle='font-size: 26rpx; color: #D5D5D5'></uv-input>
          </view>
          <view class="code">获取验证码</view>
        </view>
        <button class="btn phone-login">确定</button>
      </view>
    </view>
  </view>
</template>

<script setup>
import protocolBox from '../../components/protocol-box/protocol-box.vue';
import footerLogin from '../../components/login-footer/login-footer.vue';

import { ref } from 'vue';

let mobile = ref('');

function goBack(){
  uni.navigateBack({
    delta: 1
  });
}
</script>

<style lang="scss" scoped>
  .center{
    width: 100%;
    position: fixed;
    left: 0;
    bottom: 0;
    .box{
      background-color: #fff;
      border-top-left-radius: 50rpx;
      border-top-right-radius: 50rpx;
      padding: 0 50rpx;
      padding-top: 100rpx;
      position: relative;
      height: 75vh;
      .phone-login{
        width: 360rpx;
        margin: 0 auto;
        margin-top: 140rpx;
      }
      .input{
        border-bottom: 0.5px solid rgba(151, 151, 151, .3);
        width: 100%;
        padding-bottom: 20rpx;
        display: flex;
        align-items: center;
        &:nth-of-type(2){
          margin-top: 50rpx;
        }
        .code{
          font-weight: 400;
          font-size: 26rpx;
          color: #EF4734;
          width: 150rpx;
          text-align: right;
        }
        .test{
          flex: 1;
        }
        .area{
          font-size: 34rpx;
          color: #000000;
        }
      }
    }
    .head{
      padding: 0 50rpx;
      padding-bottom: 30rpx;
      display: flex;
      align-items: center;
      .title{
        padding-left: 35rpx;
        font-weight: 500;
        font-size: 32rpx;
        color: #000000;
      }
      .small{
        width: 50rpx;
        height: 50rpx;
      }
    }
  }
  .left{
    width: 18rpx;
    height: 32rpx;
    margin-top: 30rpx;
    margin-left: 40rpx;
    position: relative;
    z-index: 2;
  }
  .loginBg{
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 0;
  }
</style>